# code: PY
# time:2020/11/29
from flask import Flask, request

app = Flask(__name__)

@app.route('/')
def index():
    useragent = request.headers.get('user-agent')
    return f'myapp,hhahah   {useragent}'

@app.route('/user/<name>')
def myapp(name):
    return f'hello {name}'

if __name__ == "__main__":
    app.run(debug=True)